package lab02.test36;

abstract class Student {
    private String name;
    private int Chinese;
    private int math;
    private int English;

    public Student(String name, int Chinese, int math, int English) {
        this.name = name;
        this.Chinese = Chinese;
        this.math = math;
        this.English = English;
    }


    public String getName() {
        return name;
    }

    public void setName() {
        this.name = name;
    }

    public int getChinese() {
        return Chinese;
    }

    public void setChinese(int chinese) {
        this.Chinese = chinese;
    }


    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public int getEnglish() {
        return English;
    }

    public void setEnglish(int English) {
        this.English = English;
    }

    public float average(int English, int math, int Chinese) {
        float a;
        a = (English + math + Chinese) / 3;
        return a;
    }
}
